<template>
  <d2-container class="page">
    <h3>我的数据统计</h3>
    <ul v-for="item in sellData">
      <li>{{ item.label }}</li>
      <li>{{ item.seating }}</li>
    </ul>
  </d2-container>
</template>

<script>
import * as customer from "@/api/customer";

import { mapState } from "vuex";
export default {
  computed: {
    ...mapState("d2admin/releases", ["version"])
  },
  data() {
    return {
      sellData: []
    };
  },
  created() {
    customer.getSuccessCountByUserId().then(resp => {
      console.log(resp);
      this.sellData = resp.result;
    });
  }
};
</script>

<style lang="scss" scoped>
@import "~@/assets/style/public.scss";
.page {
  .page__logo {
    width: 120px;
  }
  .page__btn-group {
    color: $color-text-placehoder;
    font-size: 12px;
    margin-top: -10px;
    margin-bottom: 20px;
    span {
      color: $color-text-sub;
      &:hover {
        color: $color-text-main;
      }
    }
  }
}
</style>
